package com.itliupeng.stock.mapper;

import com.itliupeng.stock.pojo.entity.SysUserRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 22375
* @description 针对表【sys_user_role(用户角色表)】的数据库操作Mapper
* @createDate 2025-04-06 20:25:45
* @Entity com.itliupeng.stock.pojo.entity.SysUserRole
*/
public interface SysUserRoleMapper {

    int deleteByPrimaryKey(Long id);

    int insert(SysUserRole record);

    int insertSelective(SysUserRole record);

    SysUserRole selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysUserRole record);

    int updateByPrimaryKey(SysUserRole record);

    List<Long> getUserRoleId(@Param("userId") long userId);

    int getUserRole(@Param("userId") long userId, @Param("roleId") long roleId);


    int deleteByUD(long userId);

    int deleteByRD(long roleId);
}
